$OpenBSD: patch-src_Makefile,v 1.1 2012/06/18 22:03:46 kili Exp $
--- src/Makefile.in.orig	Wed Aug  2 19:18:34 2006
+++ src/Makefile.in	Mon Jun 18 21:55:17 2012
@@ -90,7 +90,7 @@ all		:: hugs$(EXEEXT) runhugs$(EXEEXT) ffihugs$(EXEEXT
 ################################################################
 
 hugs$(EXEEXT)	: $(IOBJECTS) $(WOBJECTS) $(RC_FILES)
-		  $(CC) $(LDFLAGS) $(IOBJECTS) $(WOBJECTS) $(LIBS) -o hugs$(EXEEXT) 
+		  $(CC) $(CFLAGS) $(LDFLAGS) $(IOBJECTS) $(WOBJECTS) $(LIBS) -o hugs$(EXEEXT) 
 		  $(STRIP)
 
 version.$(OBJEXT) : version.c $(SOURCES)
@@ -101,10 +101,10 @@ version.$(OBJEXT) : version.c $(SOURCES)
 
 SERVER_OBJECTS	= server.$(OBJEXT) $(OBJECTS) 
 runhugs$(EXEEXT) : runhugs.$(OBJEXT) $(SERVER_OBJECTS)
-		  $(CC) $(LDFLAGS) runhugs.$(OBJEXT) $(SERVER_OBJECTS) $(LIBS) -o runhugs$(EXEEXT)
+		  $(CC) $(CFLAGS) $(LDFLAGS) runhugs.$(OBJEXT) $(SERVER_OBJECTS) $(LIBS) -o runhugs$(EXEEXT)
 
 ffihugs$(EXEEXT) : ffihugs.$(OBJEXT) $(SERVER_OBJECTS)
-		  $(CC) $(LDFLAGS) ffihugs.$(OBJEXT) $(SERVER_OBJECTS) $(LIBS) -o ffihugs$(EXEEXT)
+		  $(CC) $(CFLAGS) $(LDFLAGS) ffihugs.$(OBJEXT) $(SERVER_OBJECTS) $(LIBS) -o ffihugs$(EXEEXT)
 
 ffihugs.$(OBJEXT) : runhugs.$(OBJEXT)
 		  $(CC) -c $(CFLAGS) $(OPTFLAGS) -DFFI_COMPILER runhugs.c -o ffihugs.$(OBJEXT)
